//package com.info.zhiduoduo.pay.controller;
//
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.formbean.BaseListFormBean;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.common.utils.LogUtil;
//import com.info.zhiduoduo.pay.formbean.kltongpay.PayNotifyFormBean;
//import com.info.zhiduoduo.pay.service.KltBatchPayService;
//import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceTradeRecordItem;
//import com.info.zhiduoduo.repository.entity.order.TradeRecord;
//import com.info.zhiduoduo.repository.entity.partner.PartnerWithdraw;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/pay")
//public class PayController {
//
//	@Autowired
//	KltPayService payService;
//	@Autowired
//	KltBatchPayService kltBatchPayService;
//
//	@PostMapping("/test")
//	public SmartResult test(@RequestBody BaseSimpleFormBean formBean) {
//		SmartResult smartResult = new SmartResult();
//		smartResult.setObject("调用成功");
//		return smartResult;
//	}
//
//	/**
//	 开联通通过表单提交参数的方式将回调结果发送过来
//	 @param formBean
//	 @return
//	 */
//	@PostMapping("/notify")
//	public String payNotify(PayNotifyFormBean formBean) {
//		LogUtil.info("支付回调通知 : " + formBean.toString());
//		return "success";
//	}
//
//
//	/**
//	 开联通通过表单提交参数的方式将回调结果发送过来
//	 @param formBean
//	 @return
//	 */
//	@PostMapping("/notifyWithdraw")
//	public String payNotifyWithdraw(PayNotifyFormBean formBean) {
//		LogUtil.info("提现回调通知 : " + formBean.toString());
//		return "success";
//	}
//
//	@PostMapping("/singlePay")
//	public SmartResult singlePay(@RequestBody BaseSimpleFormBean<TradeRecord> formBean) {
//		return payService.singlePay(formBean);
//	}
//
//	@PostMapping("/singleWithdraw")
//	public SmartResult singleWithdraw(@RequestBody BaseSimpleFormBean<PartnerWithdraw> formBean) {
//		return payService.singleWithdraw(formBean);
//	}
//
//	@PostMapping("/querySinglePay")
//	public SmartResult querySinglePay(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return payService.querySinglePay(formBean);
//	}
//
//	@PostMapping("/querySingleWithdraw")
//	public SmartResult querySingleWithDraw(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return payService.querySingleWithdraw(formBean);
//	}
//
//	@PostMapping("/batchPay")
//	public SmartResult batchPay(@RequestBody BaseListFormBean<CrowdsourceTradeRecordItem> formBean) {
//		return kltBatchPayService.batchPay(formBean);
//	}
//
//	@PostMapping("/queryBatchPay")
//	public SmartResult queryBatchPay(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return kltBatchPayService.queryBatchPay(formBean);
//	}
//
//	@PostMapping("/repayBatchItem")
//	public SmartResult repayBatchItem(@RequestBody BaseSimpleFormBean<CrowdsourceTradeRecordItem> formBean) {
//		return kltBatchPayService.repayBatchItem(formBean);
//	}
//
//	@PostMapping("/queryItemRepay")
//	public SmartResult queryItemRepay(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return kltBatchPayService.queryItemRepay(formBean);
//	}
//}
